pp108 : Designing a State Model

Designing a State Model

This topic describes the procedure to design a state model.

A state model is a set of states, events, and transitions. Transition is the transformation of a business object from one state to another. Events trigger the transition of a business object from one state to the next state.

  1. Select a starting point and click (MDM State Model) to create an MDM State Model. The <Untitled MDM State Model> - MDM State Model window appears.
  2. Click on the States tab to create states. Refer to Creating a State, for the procedure to create states.
  3. Click the Transitions tab to define transitions between states, and select on the tool bar. The Transition - Enter Transition Details window appears.
  4. Specify the state from which the transition starts in the From State drop-down list.
  5. Specify the state where the transition ends in the To State drop-down list.
  6. Specify a name for event that triggers the transition in the Event Name field.
  7. If you want to specify a guard on the transition, select the Use Guard option. Else, skip this step and go to the next step. The Guard window is displayed.
    1. Specify a name for the guard in the Guard Name field.
    2. Specify the type of guard in the Guard Type drop down menu. Currently only guard of type Rule is available. You may Create Custom Guards, if required.
    3. Type the rule expression in the Rule Expression field. To view an example for a rule expression, refer to Example for Configuring a Rule Expression in MDM.
  8. Select Show Event in Cockpit option to show this event in the instance view of MDM Cockpit.
  9. Click OK. The transition is created.
  10. Repeat the above steps until all the required transitions are created.
  11. Click . The <Untitled MDM State Model> - MDM State Model dialog box appears.
  12. Type the appropriate name and description for the MDM State Model in the Name and Description fields.

    Note:
    To save the MDM State Model at a specific location, click and select a folder in the Select Folder dialog box. If required, create a project, right-click it and create a folder.

  13. Click Save in the <MDM State Model> - MDM State Model dialog box.

The state model is created.
You can validate the created state model.

Note:

  • To edit the attributes of a transition, select a transition and click .
  • To delete a transition, select the required transition and click .
  • To view the SCXML code of a state model, click (View SCXML) icon.

After you complete this task:
The state model must be associated with an MDM hub data entity in an MDM model.

Related concepts

State Machine

Related tasks

Creating a State

Related information

State Modeling Using State Machine
State Model Notation Using SCXML